import request from '@/utils/request.js'

/**
 * 获取组织架构数据
 * @returns promise
 */
export const getDepartmentList = () => {
  return request({
    method: 'GET',
    url: '/company/department'
  })
}

/**
 * 删除组织
 * @param {*} id 组织id
 * @returns
 */
export const deleteDepartment = (id) => {
  return request({
    method: 'DELETE',
    url: '/company/department/' + id
  })
}
